home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Queensland Science Project eChemistry
/
Queensland Science Project eChemistry (ISBN 9781740818636).iso
/
ictToolKit
/
ict
/
ict.js
< prev
next >
Wrap
Text File
|
2003-05-21
|
2KB
|
55 lines
<!--
function PreviousSection(no)
{
var cursec = currentContent.substr(0,currentContent.indexOf("_"));
var curtopic = currentContent.substr(currentContent.indexOf("_")+1);
var pretopic = parseInt(curtopic) - 1;
if (pretopic == 0){
if (no == 1) pretopic = 27; // there're 27 topics in section 1
if (no == 2) pretopic = 33;
if (no == 3) pretopic = 16;
if (no == 5) pretopic = 11;
if (no == 6) pretopic = 6;
if (no == 7) pretopic = 20;
if (no == 8) pretopic = 6;
if (no == 9) pretopic = 26;
if (no == 10) pretopic = 13;
if (no == 11) pretopic = 9;
if (no == 12) pretopic = 11;
if (no == 13) pretopic = 9;
if (no == 14) pretopic = 34;
if (no == 15) pretopic = 6;
if (no == 16) pretopic = 4;
if (no == 17) pretopic = 4;
}
var preContent = cursec + "_" + pretopic.toString();
MM_showHideLayers(currentContent,'','hide',preContent,'','show');
currentContent = preContent;
}
function NextSection(no)
{
var cursec = currentContent.substr(0,currentContent.indexOf("_"));
var curtopic = currentContent.substr(currentContent.indexOf("_")+1);
var nexttopic = parseInt(curtopic) + 1;
if (no == 1 && nexttopic == 28) nexttopic = 1;
if (no == 2 && nexttopic == 34) nexttopic = 1;
if (no == 3 && nexttopic == 17) nexttopic = 1;
if (no == 5 && nexttopic == 12) nexttopic = 1;
if (no == 6 && nexttopic == 7) nexttopic = 1;
if (no == 7 && nexttopic == 21) nexttopic = 1;
if (no == 8 && nexttopic == 7) nexttopic = 1;
if (no == 9 && nexttopic == 27) nexttopic = 1;
if (no == 10 && nexttopic == 14) nexttopic = 1;
if (no == 11 && nexttopic == 10) nexttopic = 1;
if (no == 12 && nexttopic == 12) nexttopic = 1;
if (no == 13 && nexttopic == 10) nexttopic = 1;
if (no == 14 && nexttopic == 35) nexttopic = 1;
if (no == 15 && nexttopic == 7) nexttopic = 1;
if (no == 16 && nexttopic == 5) nexttopic = 1;
if (no == 17 && nexttopic == 5) nexttopic = 1;
var nextContent = cursec + "_" + nexttopic.toString();
MM_showHideLayers(currentContent,'','hide',nextContent,'','show');
currentContent = nextContent;
}
//-->